Public: Concord Software Projects : Setup JNLP Deployment Environment
This page last changed on Oct 22, 2008 by stepheneb.
OverviewThese are the steps needed to create a webapp which the maven webstart jnlp plugin can populate. If you want a webapp that mirrors jnlps and jars from an existing webapp then you should follow the directions on this page: StepsThe basic steps are:
Setup WEB-INF folder
Check out the Maven project which defines the jars and jnlpsThere are currently 2 maven projects which are used to populate a webapp like this:
For the TELS jnlps do the following to check it out svn co http://tels.svn.sf.net/svnroot/tels/trunk/Pas%20Suite/pas-jnlp/ The projects tend not to change too frequently. They only change when a totally new jnlp is needed, or a new dependency needs to be added directly to one of the poms defining a jnlp . Typically dependencies are not added directly poms in this project. Instead they are added to one a dependency of this project. For example the new dependency is added to the pas-learner-runtime pom not the pas-jnlp pom. Both TELS and CC have this project setup in a continuum server so it can be updated and rebuilt easily. Modify the location this project will popuplate with jars and jnlpsIn the next step you will run a maven goal which tels this project to download all the jars, sign them, pack them, and build jnlps pointing to them. Before doing this you need to tell the goal where to put all of these jars and jnlps. In the pas-jnlp project this is done by modifying the pas-jnlp/common-jnlp-parent/pom.xml that you just checked out.
<build>
<plugins>
<plugin>
<groupId>org.telscenter.maven-plugins</groupId>
<artifactId>webstart-maven-plugin</artifactId>
...
<configuration>
<!-- this needs to be set to the servlet directory
on the server -->
<workDirectory>/home/aperritano/dev/webservices/apache-tomcat-5.5-axis/webapps/jnlp</workDirectory>
Change the path in the workDirectory to be the root of the web app you setup in step one. (optional) Setup a secondar m2 settings and repositoryThis step is not necessary if you are only using this user to maintain this webapp. If however the user is also used to run maven to build some of the jars used by the jnlp, then you should follow this step. The problem this solves is briefly described in the "Dependency Problems" section of this page: http://confluence.concord.org/display/CSP/Webstart+Jnlp+Plugin
Setup a jarsigner signatureIn order for webstart run applications outside of its security sandbox they must be signed. TELS and CC both use a jar certificate that CC owns. It would be best to create or purchase your own, but if you afflitated with CC in some way you might be able to use CC's certificate. email scott at concord to see if you can get the certificate and passphrase. Useful documentation: Follow these steps:
You don't need to use "concord-profile" for the id of the profile. Whatever it is, it should match the activeProfile. You do need to use the property name "concord.storepass". (you could change this if you change where it is referenced in the pom.xml) run the maven goal
Verify the creation of the jars
jnlp-servlet.jar (application/java-archive)
web.xml (text/xml) empty-jnlp-servlet.war (application/octet-stream) |
Document generated by Confluence on Jan 27, 2014 16:52 |